package com.wlc.io;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class CharStreamTest {
	public static void main(String[] args) {
		try {
			FileReader  fr=new FileReader("Sourse\\1.txt");
			
				FileWriter fw=new FileWriter("Sourse\\2.txt");
				char[] b=new char[1024];
				while(fr.read(b)!=-1)
				{
					fw.write(b);
				}
			} catch (IOException e) {
				
				e.printStackTrace();
			}
		
	}

}
